home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI O2 Out of Box Experience 2.2
/
SGI O2 Out of Box Experience 2.2.iso
/
cgi-bin
/
nph-startIpanel.cgi
< prev
next >
Wrap
Text File
|
1998-05-26
|
1KB
|
51 lines
#!/bin/sh
DISPLAY=:0.0
export DISPLAY
# First thing, check to see if we've already started ipanel
# If so, exit. If not, continue on.......
found=`/sbin/ps -ef | grep "ipanel" | grep -v grep`
if [ -n "$found" ]; then
/usr/bin/X11/xconfirm -c -B "OK" -icon progress \
-font '-*-helvetica-medium-r-narrow--19-*-*-*-p-83-iso8859-1' \
-t "The Language and Time Zone Tool has already been started." >/dev/null
exit
fi
server_protocol=$SERVER_PROTOCOL;
server_software=$SERVER_SOFTWARE;
/sbin/echo "$server_protocol 200 OK"
/sbin/echo "Server: $server_software"
/sbin/echo "Content-Type: text/html";
/sbin/echo "Expires: 0\n";
# Print header
/sbin/echo "<html>\n";
/sbin/echo "<body bgcolor=\"#000000\" text=\"#996688\">\n";
/sbin/echo "<PRE>\n";
/sbin/echo "</PRE>\n";
/sbin/echo "<h2> Starting Language and Time Zone Tool...</h2>\n";
/sbin/echo "</body>\n";
/sbin/echo "</html>\n";
# Set the DISPLAY environment variable
DISPLAY=:0.0
export DISPLAY
# run app in background
`/usr/sbin/ipanel -oobe -system -geometry +220+158>/dev/null`;
# turn the area black again.
/sbin/echo "<html>\n";
/sbin/echo "<body bgcolor=\"#000000\">\n";
/sbin/echo "</body>\n";
/sbin/echo "</html>\n";